package edu.rpi.tw.pml.browsing.client;

import java.util.ArrayList;

/**
 * An interface to update InstanceTableWidget.
 */
public interface InstanceTableDataProvider {

	/**
	 * An interface allowing a widget to accept or report failure
	 */
	interface TableDataAcceptor {
		void accept(String result);

		void failed(Throwable caught);
	}

	/*
	 * Update instance table
	 */
	void updateTable(TableDataAcceptor acceptor);
	
	/*
	 * Set the concept list.
	 */
	void setConceptList(ArrayList<String> conceptList);
}
